namespace NewsReport.Entity.POCOModel
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("UserLogin")]
    public partial class UserLogin
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public UserLogin()
        {
            AttentionInfo = new HashSet<AttentionInfo>();
            CollectInfo = new HashSet<CollectInfo>();
            MessageInfo = new HashSet<MessageInfo>();
            MoreComment = new HashSet<MoreComment>();
            OneComment = new HashSet<OneComment>();
        }

        [Key]
        public int Usid { get; set; }

        [Required]
        [StringLength(20)]
        public string Uname { get; set; }

        [Required]
        [StringLength(20)]
        public string Upwd { get; set; }

        [Required]
        [StringLength(40)]
        public string Uemail { get; set; }

        [Required]
        [StringLength(30)]
        public string Uphone { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<AttentionInfo> AttentionInfo { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<CollectInfo> CollectInfo { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<MessageInfo> MessageInfo { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<MoreComment> MoreComment { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<OneComment> OneComment { get; set; }
    }
}
